package com.keon.jianbao.ui.activity;

import android.os.Bundle;
import android.view.View;

import com.keon.jianbao.R;
import com.keon.jianbao.base.BaseActivity;
import com.keon.jianbao.bean.DetailAppraisal;
import com.keon.jianbao.ui.widget.ItemLayout;

import butterknife.Bind;

/**
 * Created by keon on 2015/9/30.
 */
public class AppraisalDescActivity extends BaseActivity {

    @Bind(R.id.appraisal_desc_appraisal_expert)
    ItemLayout llExpert;
    @Bind(R.id.appraisal_desc_appraisal_expert_result)
    ItemLayout llExpertResult;
    @Bind(R.id.appraisal_desc_appraisal_name)
    ItemLayout llName;
    @Bind(R.id.appraisal_desc_appraisal_catlog)
    ItemLayout llCatlog;
    @Bind(R.id.appraisal_desc_appraisal_age)
    ItemLayout llAge;
    @Bind(R.id.appraisal_desc_appraisal_size)
    ItemLayout llSize;
    @Bind(R.id.appraisal_desc_appraisal_expert_result_text)
    ItemLayout llResultText;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_appraisal_desc;
    }

    @Override
    protected int getToolBarTitle() {
        return R.string.appraisal_desc;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        Bundle bundle = getIntent().getExtras();
        DetailAppraisal detailAppraisal = (DetailAppraisal) bundle.getSerializable("detailAppraisal");

        llExpert.setTitle(R.string.appraisal_detail_owner, detailAppraisal.getUser_name());
        llExpertResult.setTitle(R.string.appraisal_detail_create_time, detailAppraisal.getCreate_time());
        llName.setTitle(R.string.appraisal_detail_appraisal_name, detailAppraisal.getAppraisal_name());
        llCatlog.setTitle(R.string.appraisal_detail_appraisal_catlog, detailAppraisal.getAppraisal_catalog());
        llAge.setTitle(R.string.appraisal_detail_appraisal_age, detailAppraisal.getAppraisal_age());
        llSize.setTitle(R.string.appraisal_detail_appraisal_size, detailAppraisal.getAppraisal_size());
        llResultText.setTitle(R.string.appraisal_detail_desc2, detailAppraisal.getAppraisal_desc());
    }

    @Override
    public void onClick(View view) {

    }
}
